package com.crm.model.jdao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.crm.model.pojo.Power;

/**
 * JPA权限dao
 * @author Menghui
 *
 */
public interface IAuthorityDAO extends CrudRepository<Power, Integer>{
	
	/**
	 * 查询权限
	 * @param begin
	 * @param ends
	 * @return
	 */
	public List<Power> findBypIdBetween(Integer begin,Integer ends); 
	
	@Query("SELECT p FROM Power p")
	public List<Power> findAll();
}
